package com.macro.mall.service;

import com.macro.mall.annotationUtil.CurrentUserName;
import com.macro.mall.dto.UmsAdminDTO;
import com.macro.mall.model.SmsHomeRecommendProduct;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 首页人气推荐管理Service
 */
public interface SmsHomeRecommendProductService {
    /**
     * 添加首页推荐
     */
    @Transactional
    int create(Long storeId,Long memberId,String memberUserName,  List<SmsHomeRecommendProduct> homeRecommendProductList);

    /**
     * 修改推荐排序
     */
    int updateSort(Long storeId,Long memberId,String memberUserName, Long id, Integer sort);

    /**
     * 批量删除推荐
     */
    int delete(Long storeId,Long memberId,String memberUserName,  List<Long> ids);

    /**
     * 更新推荐状态
     */
    int updateRecommendStatus(Long storeId,Long memberId,String memberUserName, List<Long> ids, Integer recommendStatus);

    /**
     * 分页查询推荐
     */
    List<SmsHomeRecommendProduct> list(UmsAdminDTO umsAdminDTO, Long memberId, String memberUserName, String productName, Integer recommendStatus, Integer pageSize, Integer pageNum);
}
